package qualomelhor.database;

import javax.persistence.Id;
import com.google.appengine.api.datastore.Blob;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Indexed;

import java.io.Serializable;

@Entity
public class LinkBlobImage implements Serializable {

		private static final long serialVersionUID = 0;

		@Id
	    private Long id; 

	    @Indexed
	    private String link;

	    private Blob imageBlob;

	    public LinkBlobImage () {

	    }

	    public LinkBlobImage(String link, Blob imageBlob) {
	    	this.link = link;
	    	this.imageBlob = imageBlob;
	    }

	    public Long getId() { 
	        return id; 
	    } 

	    public String getLink() { 
	        return link;
	    }

	    public Blob getImage() { 
	        return imageBlob;
	    }

	    public void setId(Long id) {
	    	this.id = id;
	    }

	    public void setLink(String link) {
	    	this.link = link;
	    }

	    public void setImage(Blob imageBlob) {
	    	this.imageBlob = imageBlob;
	    }
}